import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from "element-plus/es/locale/lang/zh-cn";// 导入中文语言包


var app=createApp(App)
app.use(ElementPlus, { locale: zhCn  })
app.use(router) // 注册 router

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
 
// Object.keys(ElIcon).forEach((key) => {
//     app.component(key, ElIcon[key])
//   })
app.mount('#app');

